FROM java:8
EXPOSE 8080

VOLUME /temp
ADD target/*jar /app.jar
RUN bash -c 'touch /app.jar'
ENTRYPOINT ['java','-jar','app.jar','-Xms128m','-Xmx500m','--spring.profiles.active=prod']